import requests

cookies = {
    'yb_header_show': 'true',
    'yb_header_active': '-1',
}

headers = {
    'x-tif-signature': '17cfc2e8a08004701e9d640a34868d3a8445131605a97945dca5721f6938aff8',
    'x-tif-timestamp': '1739646604',
}

json_data = {
    'data': {
        'data': {
            'encData': '3DFBCA4667B978F639BB23B95DCE4CC7713651575D9EA4410F07C9358159AAA0CCD20943B4DAE96380B41164D761DE9742C84A985FE3BABC31CB352556BB87C9C1495DB24A29AB6BC3A85AB7FCA00F33C56677481A67C67F739EE2C7D589054DC373615B5DDB33C24C5B31E61CB7643E5CF44094AC1170C43496F134EF92704CD0B4E7BB97C60BF8E5275CAFCAFD1E13E384C10195003FD638576645B5EF45EA',
        },
        'appCode': 'T98HPCGN5ZVVQBS8LZQNOAEXVI9GYHKQ',
        'version': '1.0.0',
        'encType': 'SM4',
        'signType': 'SM2',
        'timestamp': 1739646604,
        'signData': 'RlXYc+b7EfR+bgijBpjhbbAWNPmO58Qof1zkchAcoDi+W/GzU97F7PaOTGV78WbJ50y+FaCLItBwWH0i5KE60A==',
    },
}

response = requests.post(
    'https://fuwu.nhsa.gov.cn/ebus/fuwu/api/nthl/api/CommQuery/queryFixedHospital',
    cookies=cookies,
    headers=headers,
    json=json_data,
)
print(response.text)
